const state = {
  cityDetail:{},
  systemType:null
}

const mutations = {
  SET_CITY_DETAIL: (state, detail) => {
    state.cityDetail=detail;
  },
  SET_SYSTEM_TYPE: (state, type) => {
    state.systemType=type;
  }
}

const actions = {
  setCityDetail({ commit }, detail) {
    commit('SET_CITY_DETAIL', detail)
  },
  setSystemType({ commit }, type) {
    commit('SET_SYSTEM_TYPE', type)
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
